import Vue from 'vue'
import ElementUI from 'element-ui';
import i18n from './i18n/i18n';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from '@/store'
import axios from '@/httpConfig/http'
import VueAxios from 'vue-axios'
// import VueSystemAuth from 'vue-system-auth'
// Vue.use(VueSystemAuth);
Vue.use(ElementUI)
Vue.use(VueAxios,axios)
Vue.prototype.HOST = '/gateway/data/api/standard/mask' //服务访问路径
Vue.config.productionTip = false
Vue.prototype.EventBus=new Vue();

// router.beforeEach((to, from ,next) => {

//   let Authorization = store.state.Authorization || localStorage.getItem('Authorization');
//   let refresh_token = store.state.refresh_token || localStorage.getItem('refresh_token');

//   //均不存在时，表示未认证，跳转到登陆页
//   if(!Authorization && !refresh_token && to.path != '/noaccess'){
//     next({path: '/noaccess'});
//   }else{
//     next();
//   }

// })

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
